package cn.nkpro.elcube.docengine.service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

public interface NkPipelineService {

    ThreadLocal<Map<String,String>> request = new ThreadLocal<>();

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    Map<String, Object> invoke(String docType, Map<String,String> request);
}
